package com.ruoyi.webs.hzhelp.question.service.impl;

import java.util.List;

import com.ruoyi.webs.hzhelp.question.domain.HzHelpQuestion;
import com.ruoyi.webs.hzhelp.question.mapper.HzHelpQuestionMapper;
import com.ruoyi.webs.hzhelp.question.service.IHzHelpQuestionService;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 问题Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-03
 */
@Service
public class HzHelpQuestionServiceImpl implements IHzHelpQuestionService
{
    private HzHelpQuestionMapper hzHelpQuestionMapper;

    /**
     * 查询问题
     * 
     * @param ID 问题主键
     * @return 问题
     */
    @Override
    public HzHelpQuestion selectHzHelpQuestionByID(String ID)
    {
        return hzHelpQuestionMapper.selectHzHelpQuestionByID(ID);
    }

    /**
     * 查询问题列表
     * 
     * @param hzHelpQuestion 问题
     * @return 问题
     */
    @Override
    public List<HzHelpQuestion> selectHzHelpQuestionList(HzHelpQuestion hzHelpQuestion)
    {
        return hzHelpQuestionMapper.selectHzHelpQuestionList(hzHelpQuestion);
    }

    /**
     * 新增问题
     * 
     * @param hzHelpQuestion 问题
     * @return 结果
     */
    @Override
    public int insertHzHelpQuestion(HzHelpQuestion hzHelpQuestion)
    {
        return hzHelpQuestionMapper.insertHzHelpQuestion(hzHelpQuestion);
    }

    /**
     * 修改问题
     * 
     * @param hzHelpQuestion 问题
     * @return 结果
     */
    @Override
    public int updateHzHelpQuestion(HzHelpQuestion hzHelpQuestion)
    {
        return hzHelpQuestionMapper.updateHzHelpQuestion(hzHelpQuestion);
    }

    /**
     * 批量删除问题
     * 
     * @param IDs 需要删除的问题主键
     * @return 结果
     */
    @Override
    public int deleteHzHelpQuestionByIDs(String IDs)
    {
        return hzHelpQuestionMapper.deleteHzHelpQuestionByIDs(Convert.toStrArray(IDs));
    }

    /**
     * 删除问题信息
     * 
     * @param ID 问题主键
     * @return 结果
     */
    @Override
    public int deleteHzHelpQuestionByID(String ID)
    {
        return hzHelpQuestionMapper.deleteHzHelpQuestionByID(ID);
    }
}
